package com.joker.cart.remote;

import com.joker.cart.remote.factory.PmsCartRemoteFallbackFactory;
import com.joker.common.core.constant.ServiceNameConstants;
import com.joker.common.core.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author lemon
 * @date 2024/12/29 16:27
 **/
@FeignClient(contextId = "remoteCartService", value = ServiceNameConstants.CART_SERVICE,fallbackFactory = PmsCartRemoteFallbackFactory.class)
public interface IPmsCartRemoteService {
    @DeleteMapping("/cart/removePayed")
    public Result removePayed(@RequestParam("skuIds") Long[] skuIds);
}
